import request from '@/utils/request'

// 查询招聘管理-招聘需求列表
export function listAsk(query) {
  return request({
    url: '/hrmanagement/ask/list',
    method: 'get',
    params: query
  })
}

// 查询招聘管理-招聘需求详细
export function getAsk(id) {
  return request({
    url: '/hrmanagement/ask/' + id,
    method: 'get'
  })
}

// 新增招聘管理-招聘需求
export function addAsk(data) {
  return request({
    url: '/hrmanagement/ask',
    method: 'post',
    data: data
  })
}

// 修改招聘管理-招聘需求
export function updateAsk(data) {
  return request({
    url: '/hrmanagement/ask',
    method: 'put',
    data: data
  })
}

// 删除招聘管理-招聘需求
export function delAsk(id) {
  return request({
    url: '/hrmanagement/ask/' + id,
    method: 'delete'
  })
}
